#define _CRT_SECURE_NO_WARNINGS
#include "Sort.h"

void TestInsertSort()
{
	int arr[] = { 9,1,2,5,7,4,8,6,3,5 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	InsertSort(arr, sz);
	for (int i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}

void TestShellSort()
{
	int arr[] = { 9,1,2,5,7,4,8,6,3,5 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	ShellSort02(arr, sz);
	PrintArray(arr, sz);
	printf("\n");
}

void TestSelectSort()
{
	int arr[] = { 9,1,2,5,7,4,8,6,3,5 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	SelectSort(arr, sz);
	PrintArray(arr, sz);
}

void TestBubbleSort()
{
	int arr[] = { 9,1,2,5,7,4,8,6,3,5 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	BubbleSort(arr, sz);
	PrintArray(arr, sz);
}

int main()
{
	TestInsertSort();
	TestShellSort();
	TestSelectSort();

	return 0;
}